package com.example.iotmanagerment26.service.impl;

import com.example.iotmanagerment26.domain.ActObj;
import com.example.iotmanagerment26.domain.Data;
import com.example.iotmanagerment26.domain.Oprecord;
import com.example.iotmanagerment26.mapper.OprecordMapper;
import com.example.iotmanagerment26.service.OprecordService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 作者：太难猫
 * 创建时间： 2025/6/6 10:53
 */
@Service
public class OprecordServiceImpl implements OprecordService {
    @Resource
    OprecordMapper oprecordMapper;
    @Override
    public int insert(ActObj a1) {
        return oprecordMapper.insert(a1);
    }

    @Override
    public Data getData(String device) {
        return oprecordMapper.getData(device);
    }

    @Override
    public List<Data> getDataList(String device) {
        return oprecordMapper.getDataList(device);
    }

    @Override
    public List<Oprecord> getOprecord(String device) {
        return oprecordMapper.getOprecord(device);
    }
}